package thread;

public class Demo11 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(()->{
            System.out.println("hello t");
        });

        // 在启动之前，获取线程状态，NEW
        System.out.println(t.getState());
        t.start();

        Thread.sleep(1000);
        System.out.println(t.getState());
    }
}
